﻿namespace Theoreme.Teaching.AOP.Sample01
{
    internal class Order : Entity
    {
        [RequireRole(Roles.SalesAssistant, Roles.SalesManager, Parameter = 0)]
        public Order(Organization organization)
        {
            this.Parent = organization;
        }

        public decimal Discount
        {
            get;

            [RequireRole(Roles.SalesManager)]
            set;
        }
    }
}